package action;

import java.util.ArrayList;

import model.Criteri;

import com.opensymphony.xwork2.ActionSupport;

public class AliciousAction extends ActionSupport {

	private static final long serialVersionUID = -2613425890762568273L;

	private String criteri; 
	private ArrayList<Criteri> criteriList;

	public AliciousAction() {
		criteriList = new ArrayList<Criteri>();
		criteriList.add(new Criteri(1, "Categoria"));
		criteriList.add(new Criteri(2, "Color"));
		criteriList.add(new Criteri(3, "Mes votats"));	
		
	}

	public String home()
	{
		return "home";          
	}

	public String criteri()
	{
		return "criteri";               
	}

	public String autenticar()
	{
		return "autenticar";                
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		return home();
	}

	// Getters & Setters
	public String getCriteri() {
		return criteri;
	}

	public void setCriteri(String criteri) {
		this.criteri = criteri;
	}

	public ArrayList<Criteri> getCriteriList() {
		return criteriList;
	}

	public void setCriteriList(ArrayList<Criteri> criteriList) {
		this.criteriList = criteriList;
	}
} 